package tp.disenio.client;

import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;


public class Background extends Composite{
	public Background() {
		
		int ancho = (int)(Window.getClientWidth()*0.9);
		int alto = (int)(Window.getClientHeight()*0.9);
		
		AbsolutePanel dockLayoutPanel = new AbsolutePanel();
		initWidget(dockLayoutPanel);
		
		dockLayoutPanel.setPixelSize(ancho, alto);
		
		Label lblTpDisenio = new Label("TP Disenio -- 2012 -- Galvan-Lamy-Privitello-Rivoira -- All Rights Reserverd");
		lblTpDisenio.setStyleName("marcaDerechos");
		lblTpDisenio.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
		dockLayoutPanel.add(lblTpDisenio, (ancho/2)-300, alto-20);
		
		Image image = new Image("images/LOGO.png");
		image.setSize("400px", "280px");
		dockLayoutPanel.add(image, (ancho/2)-200, -20);
		
  	}
}
